package com.ytjj.qmyx.mall.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PageDecorationProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PageDecorationProductExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPageIdIsNull() {
            addCriterion("page_id is null");
            return (Criteria) this;
        }

        public Criteria andPageIdIsNotNull() {
            addCriterion("page_id is not null");
            return (Criteria) this;
        }

        public Criteria andPageIdEqualTo(Integer value) {
            addCriterion("page_id =", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotEqualTo(Integer value) {
            addCriterion("page_id <>", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdGreaterThan(Integer value) {
            addCriterion("page_id >", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("page_id >=", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdLessThan(Integer value) {
            addCriterion("page_id <", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdLessThanOrEqualTo(Integer value) {
            addCriterion("page_id <=", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdIn(List<Integer> values) {
            addCriterion("page_id in", values, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotIn(List<Integer> values) {
            addCriterion("page_id not in", values, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdBetween(Integer value1, Integer value2) {
            addCriterion("page_id between", value1, value2, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("page_id not between", value1, value2, "pageId");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("product_id is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("product_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(String value) {
            addCriterion("product_id =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(String value) {
            addCriterion("product_id <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(String value) {
            addCriterion("product_id >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(String value) {
            addCriterion("product_id >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(String value) {
            addCriterion("product_id <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(String value) {
            addCriterion("product_id <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLike(String value) {
            addCriterion("product_id like", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotLike(String value) {
            addCriterion("product_id not like", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<String> values) {
            addCriterion("product_id in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<String> values) {
            addCriterion("product_id not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(String value1, String value2) {
            addCriterion("product_id between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(String value1, String value2) {
            addCriterion("product_id not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagIsNull() {
            addCriterion("original_flag is null");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagIsNotNull() {
            addCriterion("original_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagEqualTo(Boolean value) {
            addCriterion("original_flag =", value, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagNotEqualTo(Boolean value) {
            addCriterion("original_flag <>", value, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagGreaterThan(Boolean value) {
            addCriterion("original_flag >", value, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagGreaterThanOrEqualTo(Boolean value) {
            addCriterion("original_flag >=", value, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagLessThan(Boolean value) {
            addCriterion("original_flag <", value, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagLessThanOrEqualTo(Boolean value) {
            addCriterion("original_flag <=", value, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagIn(List<Boolean> values) {
            addCriterion("original_flag in", values, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagNotIn(List<Boolean> values) {
            addCriterion("original_flag not in", values, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagBetween(Boolean value1, Boolean value2) {
            addCriterion("original_flag between", value1, value2, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andOriginalFlagNotBetween(Boolean value1, Boolean value2) {
            addCriterion("original_flag not between", value1, value2, "originalFlag");
            return (Criteria) this;
        }

        public Criteria andGoodRatioIsNull() {
            addCriterion("good_ratio is null");
            return (Criteria) this;
        }

        public Criteria andGoodRatioIsNotNull() {
            addCriterion("good_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andGoodRatioEqualTo(Boolean value) {
            addCriterion("good_ratio =", value, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioNotEqualTo(Boolean value) {
            addCriterion("good_ratio <>", value, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioGreaterThan(Boolean value) {
            addCriterion("good_ratio >", value, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioGreaterThanOrEqualTo(Boolean value) {
            addCriterion("good_ratio >=", value, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioLessThan(Boolean value) {
            addCriterion("good_ratio <", value, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioLessThanOrEqualTo(Boolean value) {
            addCriterion("good_ratio <=", value, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioIn(List<Boolean> values) {
            addCriterion("good_ratio in", values, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioNotIn(List<Boolean> values) {
            addCriterion("good_ratio not in", values, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioBetween(Boolean value1, Boolean value2) {
            addCriterion("good_ratio between", value1, value2, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andGoodRatioNotBetween(Boolean value1, Boolean value2) {
            addCriterion("good_ratio not between", value1, value2, "goodRatio");
            return (Criteria) this;
        }

        public Criteria andVolumeStrIsNull() {
            addCriterion("volume_str is null");
            return (Criteria) this;
        }

        public Criteria andVolumeStrIsNotNull() {
            addCriterion("volume_str is not null");
            return (Criteria) this;
        }

        public Criteria andVolumeStrEqualTo(Boolean value) {
            addCriterion("volume_str =", value, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrNotEqualTo(Boolean value) {
            addCriterion("volume_str <>", value, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrGreaterThan(Boolean value) {
            addCriterion("volume_str >", value, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrGreaterThanOrEqualTo(Boolean value) {
            addCriterion("volume_str >=", value, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrLessThan(Boolean value) {
            addCriterion("volume_str <", value, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrLessThanOrEqualTo(Boolean value) {
            addCriterion("volume_str <=", value, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrIn(List<Boolean> values) {
            addCriterion("volume_str in", values, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrNotIn(List<Boolean> values) {
            addCriterion("volume_str not in", values, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrBetween(Boolean value1, Boolean value2) {
            addCriterion("volume_str between", value1, value2, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andVolumeStrNotBetween(Boolean value1, Boolean value2) {
            addCriterion("volume_str not between", value1, value2, "volumeStr");
            return (Criteria) this;
        }

        public Criteria andTabTypeIsNull() {
            addCriterion("tab_type is null");
            return (Criteria) this;
        }

        public Criteria andTabTypeIsNotNull() {
            addCriterion("tab_type is not null");
            return (Criteria) this;
        }

        public Criteria andTabTypeEqualTo(Integer value) {
            addCriterion("tab_type =", value, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeNotEqualTo(Integer value) {
            addCriterion("tab_type <>", value, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeGreaterThan(Integer value) {
            addCriterion("tab_type >", value, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("tab_type >=", value, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeLessThan(Integer value) {
            addCriterion("tab_type <", value, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeLessThanOrEqualTo(Integer value) {
            addCriterion("tab_type <=", value, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeIn(List<Integer> values) {
            addCriterion("tab_type in", values, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeNotIn(List<Integer> values) {
            addCriterion("tab_type not in", values, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeBetween(Integer value1, Integer value2) {
            addCriterion("tab_type between", value1, value2, "tabType");
            return (Criteria) this;
        }

        public Criteria andTabTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("tab_type not between", value1, value2, "tabType");
            return (Criteria) this;
        }

        public Criteria andSubscriptIsNull() {
            addCriterion("subscript is null");
            return (Criteria) this;
        }

        public Criteria andSubscriptIsNotNull() {
            addCriterion("subscript is not null");
            return (Criteria) this;
        }

        public Criteria andSubscriptEqualTo(Integer value) {
            addCriterion("subscript =", value, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptNotEqualTo(Integer value) {
            addCriterion("subscript <>", value, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptGreaterThan(Integer value) {
            addCriterion("subscript >", value, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptGreaterThanOrEqualTo(Integer value) {
            addCriterion("subscript >=", value, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptLessThan(Integer value) {
            addCriterion("subscript <", value, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptLessThanOrEqualTo(Integer value) {
            addCriterion("subscript <=", value, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptIn(List<Integer> values) {
            addCriterion("subscript in", values, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptNotIn(List<Integer> values) {
            addCriterion("subscript not in", values, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptBetween(Integer value1, Integer value2) {
            addCriterion("subscript between", value1, value2, "subscript");
            return (Criteria) this;
        }

        public Criteria andSubscriptNotBetween(Integer value1, Integer value2) {
            addCriterion("subscript not between", value1, value2, "subscript");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}